// MainTools.cpp : implementation file
//

#include "stdafx.h"
#include "MainTools.h"
#include "ObjectCreateTool.h"

/////////////////////////////////////////////////////////////////////////////
// CMainTools dialog


CMainTools::CMainTools()
{
	std::vector<CString> categories;
	GetIEditor()->GetObjectManager()->GetClassCategories( categories );
	for (int i = 0; i < categories.size(); i++)
	{
		CString category = categories[i];
		SButtonInfo bi;
		bi.toolClassName = "EditTool.ObjectCreate";
		bi.name = category;
		bi.toolUserDataKey = "category";
		bi.toolUserData = category;
		AddButton(bi);
	}
}
void CMainTools::OnButtonPressed( const SButtonInfo &button )
{
	// Create browse mode for this category.
	//CObjectCreateTool *tool = new CObjectCreateTool;
	//GetIEditor()->SetEditTool( tool );
	//tool->SelectCategory( button.name );
}
